<%@ page import="com.iqiyi.kiwi.utils.Configuration" %>
<%@ page import="org.apache.commons.lang.StringUtils" %>
<%@ page import="com.iqiyi.kiwi.utils.DateHelper" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<head>
    <%@ include file="/common/meta.jsp" %>
    <%@ include file="/common/public.jsp" %>
    <%@ include file="/common/maindwz-js.jsp"%>
    <title>主页</title>
</head>

<body>
<security:authorize ifAnyGranted="AUTH_ALL">
    <%
        String commitStr = Configuration.getString("project.datetime");
    %>
    <table class="noborder">
        <tr>
            <td>系统版本：</td>
            <td><%=Configuration.getString("project.version")%>_<%=Configuration.getString("project.build")%>
            </td>
        </tr>
        <tr>
            <td>提交时间：</td>
            <td><%=StringUtils.isNotEmpty(commitStr)? new StringBuilder(commitStr).substring(0, commitStr.lastIndexOf(":") + 3).toString() : DateHelper.getNowDate()%>
            </td>
        </tr>
        <tr>
            <td>代码分支：</td>
            <td><%=Configuration.getString("project.tag")%>
            </td>
        </tr>
    </table>
</security:authorize>
</body>
<script>
    function show_tab(param){
        alert("show_tab");
        navTab.openTab(param.tabId, param.url, { title:param.title, fresh:true, external:param.external,reloadFlag:param.reloadFlag });
    }

</script>
</html>